#include "entry_impl.h"


cell_iterator_impl::cell_iterator_impl(c_iter _cur, c_iter _end)
{
	m_iter_cur = _cur;
	m_iter_end = _end;
}

cell_iterator_impl::cell_iterator_impl(c_iter _end)
{
	m_iter_cur = _end;
	m_iter_end = _end;
}

bool cell_iterator_impl::next()
{
	if (m_iter_cur == m_iter_end)
		return false;

	m_iter_cur++;
	if (m_iter_cur == m_iter_end)
		return false;

	return true;
}

bool cell_iterator_impl::is_equal( const cell_iterator* rhs )
{
	const cell_iterator_impl* r = dynamic_cast<const cell_iterator_impl*>(rhs);
	if (m_iter_cur != r->m_iter_cur)
		return false;

	return true;
}